import instance from "./request";
// 登录
export const getloginAPI = (obj: object) => {
    return instance.post("/data/login", obj)
}
// 添加
export const addshopAPI = (obj: object) => {
    return instance.post("/data", obj)
}
// 修改
export const putshopAPI = (obj: object) => {
    return instance.put("/data", obj)
}
// 删除
export const delshopAPI = (id: number | string) => {
    return instance.delete(`/data/${id}`)
}


//分页
export const pageAPI = (obj: object) => {
    return instance.post("/data/emps", obj)
}